package com;

/**
 * @author Sai
 * Created by Sai on 2019-03-15.
 *
 *
 * @JsonbProperty - 用于指定自定义字段名称
 * @JsonbTransient - 当我们想要在反序列化/序列化期间忽略该字段时
 * @JsonbDateFormat - 当我们想要定义日期的显示格式时
 * @JsonbNumberFormat - 用于指定数值的显示格式
 * @JsonbNillable - 用于启用空值的序列化
 */

public class R2DTO {

    private String userid;
    private String name;
    private String group;
    private String openid;
    private String wx_openid;
    private String error;
    private String message;
    private String faculty;
    private String faculty_title;

    // 为了使用jsonb,必须有一个空的默认构造方法
    public R2DTO() {
    }

    public R2DTO(String userid, String name, String group, String openid, String wx_openid) {
        this.userid = userid;
        this.name = name;
        this.group = group;
        this.openid = openid;
        this.wx_openid = wx_openid;
    }

    public R2DTO(String error, String message) {
        this.error = error;
        this.message = message;
    }

    public R2DTO(String userid, String name, String group, String openid, String wx_openid, String error, String message, String faculty, String faculty_title) {
        this.userid = userid;
        this.name = name;
        this.group = group;
        this.openid = openid;
        this.wx_openid = wx_openid;
        this.error = error;
        this.message = message;
        this.faculty = faculty;
        this.faculty_title = faculty_title;
    }

    public R2DTO(String userid, String name, String group, String openid, String wx_openid, String message, String faculty, String faculty_title) {
        this.userid = userid;
        this.name = name;
        this.group = group;
        this.openid = openid;
        this.wx_openid = wx_openid;
        this.message = message;
        this.faculty = faculty;
        this.faculty_title = faculty_title;
    }

    public String getUsername() {
        return userid;
    }

    public void setUsername(String userid) {
        this.userid = userid;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getGroup() {
        return group;
    }

    public void setGroup(String group) {
        this.group = group;
    }

    public String getOpenid() {
        return openid;
    }

    public void setOpenid(String openid) {
        this.openid = openid;
    }

    public String getWx_openid() {
        return wx_openid;
    }

    public void setWx_openid(String wx_openid) {
        this.wx_openid = wx_openid;
    }

    public String getError() {
        return error;
    }

    public void setError(String error) {
        this.error = error;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public String getFaculty() {
        return faculty;
    }

    public void setFaculty(String faculty) {
        this.faculty = faculty;
    }

    public String getFaculty_title() {
        return faculty_title;
    }

    public void setFaculty_title(String faculty_title) {
        this.faculty_title = faculty_title;
    }
}